<template>
	<statusBarVue title="外部应用" :isShowBar="true" :isShowLeft="true" />
	<view class="container" :style="pageHaveBarStyle">
		<!-- 使用 WebView 组件加载外部链接 -->
		<web-view :src="webViewUrl" v-if="webViewUrl"></web-view>
	</view>
</template>

<script>
	import statusBarVue from '@/components/statusBar.vue'

	import {
		publics
	} from '@/mixins/publics.js';

	export default {
		mixins: [publics],
		components: {
			statusBarVue
		},
		data() {
			return {
				webViewUrl: '', // 你要加载的外部链接
			}
		},
		onShareAppMessage(options) {
			// 监听用户右上角的分享链接
		},
		onShareTimeline() {
			// 监听用户右上角的分享到朋友圈
		},
		onLoad(options) {
			if ((options.webViewUrl)) {
				this.webViewUrl = decodeURIComponent(options.webViewUrl + '%2F');
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.container {
		position: relative;
		overflow: auto;
		box-sizing: border-box;
		padding-bottom: calc(env(safe-area-inset-bottom) + 54rpx);
	}
</style>